package com.ls.blog.enums;

/**
 * @program: day20210907
 * @author: lishun
 * @create: 2021-09-07 21:52
 **/
public enum ResultCode {

    /**
     * 请求成功
     */
    SUCCESS(200,"请求成功"),

    LOGIN_ok(200,"登录成功"),
    NOT_LOGIN(401,"请先登录"),
    /**
     * 请求失败
     */
    FAIL(999,"请求失败"),

    /**
     * 权限不足
     *
     */
    PER_DENY(401,"没有操作权限"),

    CHECK_ERROR(400,"实现校验错误"),

    PARAM_ERROT(400,"参数错误"),

    SYS_ERROR(500,"系统错误")
    ;


    private Integer code;
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public  Integer getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }

}
